from rest_framework import serializers
from studentweb.models import Faculty, Major, Student


class FacultySerializer(serializers.ModelSerializer):
    """
    Faculty序列化
    Args:
        serializers (_type_): _description_
    """
    class Meta:
        model = Faculty
        fields = '__all__'


class MajorSerializer(serializers.ModelSerializer):
    """
    Major序列化
    Args:
        serializers (_type_): _description_
    """
    class Meta:
        model = Major
        fields = '__all__'


class StudentSerializer(serializers.ModelSerializer):
    """
    Student序列化
    Args:
        serializers (_type_): _description_
    """
    class Meta:
        model = Student
        fields = '__all__'
